package Mapper;

import entity.Food;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DetailMapper {

    //功能:通过食物id获得食物信息
    //接口接收id(食物id),前端接收Food类型,包含的属性就是food表中的字段
    @Select("SELECT * FROM food WHERE id = #{id}")
    Food iddetail(int id);
}